package iCal;

import java.text.ParseException;

public class test {

	public static void main(String[] args) throws ParseException {
		Event event1 = new Event("20140521T220000Z", "20140521T230000Z", 0, "n/a", "Study", "Hamilton", "PUBLIC");
		Event event2 = new Event("20140522T220000Z", "20140522T230000Z", 0, "n/a", "Study", "Hamilton", "PRIVATE", true, true, true, true, false, true, true, "20141225T230000Z", "WEEKLY");
		Event event3 = new Event("20140621T220000Z", "20140621T230000Z", 0, "n/a", "tar", "Hamilton", "PUBLIC");
		Event event4 = new Event("20140621T220000Z", "20140621T230000Z", 2, "n/a", "scar", "Hamilton", "PUBLIC");
		Calendar calendar1 = new Calendar(0);
		calendar1.addEvent(event1);
		calendar1.addEvent(event2);
		calendar1.addEvent(event3);
		calendar1.addEvent(event4);
		System.out.println(calendar1.buildCal());
		calendar1.buildFile();
	}

